package com.ifnk.portaljava.hlyt.dao;

import com.ifnk.portaljava.hlyt.beans.User;

import java.util.List;

public interface IUserDAO {
	
	String NAME = "name";
	String PASSWORD = "password";
	String ENABLE = "enable";
	String LOCKED = "locked";
	String CREATETIME = "createtime";
	String DISABLETIME = "disabletime";
	
	void save(User ransienInsance);

	void delete(User persisenInsance);

	User findById(Integer id);

	List findByExample(User insance);

	List findByProperty(String properyName, Object value);

	List findByName(Object name);

	List findByEnable(Object enable);

	List findByCreaetime(Object creaetime);

	List findByDisabletime(Object disabletime);

	List findByLocked(Object locked);
	
	List findAll();

	User merge(User detachedInstance);
	
	User validaty(String userName,String password);

	void attachDirty(User insance);

	void attachClean(User insance);

	List findbyUser(User user);
	
	List findByRoleName(String roleName);
}
